/* ValueForKey.m created by cfeder on Mon 07-Nov-1994 */

#import "ValueForKey.h"

@implementation NSObject (valueForKey)
- valueForKey:(NSString *)key
{
    return [[self valuesForKeys:[NSArray arrayWithObject:key]] objectForKey:key];
}

- (void)takeValue:value forKey:(NSString *)key
{
    [self takeValuesFromDictionary:[NSDictionary dictionaryWithObjects:&value forKeys:&key count:1]];
}
@end
